# Automatic Doors config
# Edit values below and either restart the mod (Console tab -> Restart All Mods,
# or Ctrl+R if hot reload is enabled in UE4SS-settings.ini) or restart the game
# for changes to take effect.

# How many real-world seconds with no player in range before a door auto-closes.
CloseAfterSeconds=.5

# 1 = automatically open doors when a player gets within AutoOpenRadiusUnits.
# 0 = disable auto-open (this mod will then only ever close doors).
AutoOpenEnabled=.5

# How close (Unreal units, 1 unit = 1 cm) a player must be to a closed door
# before it auto-opens. 250 is roughly 2.5 meters.
AutoOpenRadiusUnits=300

# How often (ms) the CHEAP check runs - distance/state math against an
# already-cached list of doors and players. No world scan happens here.
# This can safely be fairly frequent without causing lag.
CheckIntervalMs=50

# How often (ms) the EXPENSIVE rescan runs - this is what actually scans the
# whole world to rebuild the cached door/player list (picks up newly built
# doors or players joining/leaving). Keep this much less frequent than
# CheckIntervalMs; lowering it too much is what caused the original lag.
RescanIntervalMs=60000
